package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenjf
 * @email 3442748294@qq.com
 * @date 2021-09-11 09:59:31
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
@TableName("t_student")
public class Student implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;
    @TableField("name")
    private String name;
    @TableField("age")
    private Integer age;
    @TableField("qq")
    private String qq;
    @TableField("phone")
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("bir")
    private Date bir;
    @TableField("starts")
    private String starts;
    @TableField("attr")
    private String attr;
    @TableField("mark")
    private String mark;
    @TableField("clazzId")
    private Long clazzid;
    @TableField("groupId")
    private Long groupid;
    @TableField("cityId")
    private Long cityid;

}
